<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
</head>

<body>

    <script src="https://cdn.bootcdn.net/ajax/libs/flv.js/1.5.0/flv.min.js"></script>
    <video id="videoElement" style="width: 80%;" controls="controls"></video>
    <script>
        if (flvjs.isSupported()) {
            var videoElement = document.getElementById('videoElement');
            var flvPlayer = flvjs.createPlayer(
                {
                    type: 'flv',
                    isLive: true,
                    hasAudio: false,
                    url: 'http://ip/live?port=1935&app=demo&stream=stream-1'
                },
                {
                    enableStashBuffer: false,
                    isLive: true,
                }
            );
            flvPlayer.attachMediaElement(videoElement);
            flvPlayer.load();
            flvPlayer.play();
        }
    </script>
</body>

</html>